#pragma once

#include "Common.h"

#define LINK_PC2MCU     0
#define LINK_MCU2PC     1

typedef void* LinkHand;

LinkHand CreateLink(int dir);
void DestoryLink(LinkHand hand);
int LinkRecv(LinkHand hand, uint8_t *buff, uint32_t size);
int LinkSend(LinkHand hand, uint8_t* buff, uint32_t size);
